#include "fx_gargle.h"
#include "ui_fx_gargle.h"

fx_gargle::fx_gargle(QWidget *parent) :
    fx_basic(parent),
    ui(new Ui::fx_gargle)
{
    ui->setupUi(this);

    QStringList wave_form;
    wave_form << "Triangle" << "Square";
    ui->comboBox->addItems(wave_form);
    ui->comboBox->setCurrentIndex(0);
}

fx_gargle::~fx_gargle()
{
    delete ui;
}

void fx_gargle::rate(int value)
{
    ui->label_3->setText(QString::number(value) + " Hz");
}

void fx_gargle::addFX()
{
    BASS_DX8_GARGLE* result = new BASS_DX8_GARGLE();
    result->dwRateHz = ui->horizontalSlider_rate->value();
    result->dwWaveShape = ui->comboBox->currentIndex();
    emit apply(BASS_FX_DX8_GARGLE, result);
}
